#pragma once

#include <QQmlExtensionPlugin>

class CppQtLiveCodingPlugin : public QQmlExtensionPlugin {
    Q_OBJECT
    Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)

public:
    void registerTypes(const char* uri);
    void initializeEngine(QQmlEngine* engine, const char* uri);

private:
    QString fileLocation() const;
    bool isLoadedFromResource() const;
};
